API Documentation
Static Public Member Functions | List of all members
nkImages::PixelFormatUtils Class Referencefinal

Utility class to translate enum values into linked useful data. More...

Static Public Member Functions

static unsigned int getFormatByteSize (PIXEL_FORMAT format)
 

Detailed Description

Utility class to translate enum values into linked useful data.

Member Function Documentation

◆ getFormatByteSize()

static unsigned int nkImages::PixelFormatUtils::getFormatByteSize ( PIXEL_FORMAT  format)
static

Translates a pixel format into its byte size, if it were to be tightly packed.

Parameters
formatThe format value to retrieve the size from.
Returns
The format size, in bytes.

The documentation for this class was generated from the following file: